package pack0626;

import java.util.Scanner;

public class Person {
    public String name;
    public int score;
    public String type;  //记录用户出拳的类型

    public int showHand() {
        //从键盘上输入的
        Scanner scan = new Scanner(System.in);
        System.out.println("请" + name + "出拳(1.石头 2.剪刀 3.布): ");
        int n = scan.nextInt();
        if (n == 1) {
            type = "石头";
        } else if (n == 2) {
            type = "剪刀";
        } else{
            type="布";
        }
        return n;
    }
}
